//package kotlinx.coroutines.script
//
//import sample.ui.ConsoleLayout
//import kotlinx.coroutines.script.tes.pt
//import kotlinx.coroutines.script.tes.phoneScreenHeight
//import kotlin.math.max
//
//class GMap(
//    val map: Block,
//) {
//    companion object {
//        val NONE = Block("CmapNONE", 1, 1, 1, 1)
//        fun transferList(area: String): List<String> {
//            return when {
//                area.contains(C.AREA_WS) -> listOf("安全区传送站")
//                area.contains(C.AREA_MY) -> listOf("庄园传送站", "安全区传送站", "东花园传送站", "小径传送站")
//                area.contains("黑森林") -> listOf("安全区传送站", "古树传送站", "黑蔷薇传送站", "黑石村传送站", "高塔传送站")
//                area.contains("夏斯尔沙海") -> listOf("不归绿洲传送站", "瑟雷斯哨站传送站", "安全区传送站")
//                area.contains(C.AREA_CSG) -> listOf("安全区传送站", "禁闻密室传送站", "宏伟之厅传送站", "扭曲禁地传送站")
//                area.contains("冰雪苔原") -> listOf("墓葬地传送站", "安全区传送站", "苔原传送站")
//                area.contains("刑罚之狱") -> listOf("庇护之地传送站", "深渊引擎传送站", "熔火走廊传送站")
//                area.contains("扎瓦因山地") -> listOf("亡魂谷传送站", "安全区传送站", "萨卡兰姆墓地传送站")
//                area.contains(C.AREA_BRFD) -> listOf("安全区传送站", "基库拉斯激流传送站", "南部湿地传送站", "污染沼泽传送站")
//                area.contains("凌风要塞") -> listOf("浅滩传送站", "要塞中心传送站", "沉落之船传送站", "要塞前哨传送站", "废弃监狱传送站", "淹城传送站")
//                area.contains(C.AREA_STBLK) -> listOf("灰烬高地传送站", "营地传送站", "监狱传送站", "沼泽传送站", "沟壑传送站", "斯塔布雷克城外传送站")
//                else -> listOf()
//            }
//        }
//    }
//    val points = MapPathsV3(map)
//
//    private val Int.mapPt get() = (this * (map.height / 1000f)).toInt()
//    val placeClearPointMark by lazy {
//        Block("清除标点", map.right - 140.mapPt, map.bottom - 290.mapPt, 70.mapPt, 70.mapPt)
//    }
//    val checkMapBack by lazy {
//        Block(C.V_MAP_BACK, map.left + 20.pt, max(0, map.top - 30.pt), 40.pt, 40.pt)
//    }
//    val mapGlass by lazy {
//        Block(C.V_MAP_GLASS, max(map.left - 20.pt, 20.pt), phoneScreenHeight / 2 - 30.pt, 60.pt, 60.pt)
//    }
//    val mapGlassOpened by lazy {
//        Block("地图搜索(展开)",  mapGlass.left + 590.mapPt, phoneScreenHeight / 2 - 40.pt, 80.pt, 80.pt)
//    }
//     val mapGuideItem1 by lazy {
//        Block("地图指引条目1", mapGlass.left + 100.pt, map.top + 196.mapPt, 300.pt, 50.mapPt)
//    }
//     val mapGuideItem2 by lazy {
//        Block("地图指引条目2", mapGlass.left + 100.pt, map.top + 292.mapPt, mapGuideItem1.width, mapGuideItem1.height)
//    }
//     val mapGuideItem3 by lazy {
//        Block("地图指引条目3", mapGlass.left + 100.pt, map.top + 388.mapPt, mapGuideItem1.width, mapGuideItem1.height)
//    }
//     val mapGuideItem4 by lazy {
//        Block("地图指引条目4", mapGlass.left + 100.pt, map.top + 484.mapPt, mapGuideItem1.width, mapGuideItem1.height)
//    }
//     val mapGuideItem5 by lazy {
//        Block("地图指引条目5", mapGlass.left + 100.pt, map.top + 580.mapPt, mapGuideItem1.width, mapGuideItem1.height)
//    }
//    val mapGuideItem6 by lazy {
//        Block("地图指引条目6", mapGlass.left + 100.pt, map.top + 676.mapPt, mapGuideItem1.width, mapGuideItem1.height)
//    }
//    val mapGuideItem7 by lazy {
//        Block("地图指引条目7", mapGlass.left + 100.pt, map.top + 772.mapPt, mapGuideItem1.width, mapGuideItem1.height)
//    }
//
//    fun parsePositionMark(area: String, transfer: String): Block {
//        if (area.contains(C.AREA_WS)) when(transfer) {
//            "安全区传送站"-> return mapGuideItem1
//        }
//        else if (area.contains(C.AREA_MY)) when(transfer) {
//             "庄园传送站" -> return mapGuideItem1
//             "安全区传送站" ->return mapGuideItem2
//             "东花园传送站" ->return mapGuideItem3
//             "小径传送站" -> return mapGuideItem4
//        }
//        else if (area.contains("黑森林")) when(transfer) {
//            "安全区传送站" ->return mapGuideItem1
//            "古树传送站" ->return mapGuideItem2
//            "黑蔷薇传送站" -> return mapGuideItem3
//            "黑石村传送站" ->return mapGuideItem4
//            "高塔传送站" -> return mapGuideItem5
//        }
//        else if (area.contains("夏斯尔沙海")) when(transfer) {
//            "不归绿洲传送站" ->return mapGuideItem1
//            "瑟雷斯哨站传送站" ->return mapGuideItem2
//            "安全区传送站" ->return mapGuideItem3
//        }
//        else if (area.contains(C.AREA_CSG)) when(transfer) {
//            "安全区传送站" ->return mapGuideItem1
//            "禁闻密室传送站" ->return mapGuideItem2
//            "宏伟之厅传送站" ->return mapGuideItem3
//            "扭曲禁地传送站" ->return mapGuideItem4
//        }
//        else if (area.contains("冰雪苔原")) when(transfer) {
//            "墓葬地传送站" -> return mapGuideItem1
//            "安全区传送站" -> return mapGuideItem2
//            "苔原传送站" -> return mapGuideItem3
//        }
//        else if (area.contains("刑罚之狱")) when(transfer) {
//            "庇护之地传送站" -> return mapGuideItem3
//            "深渊引擎传送站" -> return mapGuideItem4
//            "熔火走廊传送站" -> return mapGuideItem5
//        }
//        else if (area.contains("扎瓦因山地")) when(transfer) {
//            "亡魂谷传送站" -> return mapGuideItem1
//            "安全区传送站" -> return mapGuideItem2
//            "萨卡兰姆墓地传送站" -> return mapGuideItem3
//        }
//        else if (area.contains(C.AREA_BRFD)) when(transfer) {
//            "安全区传送站" -> return mapGuideItem1
//            "基库拉斯激流传送站" -> return mapGuideItem2
//            "南部湿地传送站" ->return mapGuideItem3
//            "污染沼泽传送站" ->return mapGuideItem4
//        }
//        else if (area.contains("凌风要塞")) when(transfer) {
//            "浅滩传送站" -> return mapGuideItem1
//            "要塞中心传送站" -> return mapGuideItem2
//            "沉落之船传送站" -> return mapGuideItem3
//            "要塞前哨传送站" -> return mapGuideItem4
//            "废弃监狱传送站" -> return mapGuideItem5
//            "淹城传送站" -> return mapGuideItem6
//        }
//        else if (area.contains(C.AREA_STBLK)) when(transfer) {
//            "灰烬高地传送站" -> return mapGuideItem1
//            "营地传送站" -> return mapGuideItem2
//            "监狱传送站" -> return mapGuideItem3
//            "沼泽传送站" -> return mapGuideItem4
//            "沟壑传送站" -> return mapGuideItem5
//            "斯塔布雷克城外传送站" -> return mapGuideItem6
//        }
//
//        repeat(6) {
//            ConsoleLayout.outputText("未支持区域地点[${area}#传送点${transfer}],请重新检查自建路线")
//        }
//        return mapGuideItem1
//    }
//
//
//}